cc=g++
LD=#-DMYSELF
.PHONY:all
all:tcpserver tcpclient

tcpclient:tcpClient.cc
	$(cc) -o $@ $^ -std=c++11 -ljsoncpp ${LD}

tcpserver:tcpServer.cc          #-DMYSELF条件编译，注释使用json，不注释使用手写的
	$(cc) -o $@ $^ -std=c++11 -ljsoncpp ${LD}

.PHONY:clean
clean:
	rm -f tcpserver tcpclient